<template>
  <div>
    <xy-table ref="table" :api="api" :columns="columns">
      <template slot="addItem">
        <search-header :model="param" :on-search="onSearch"> </search-header>
      </template>
      <span slot="operation"></span>
    </xy-table>
  </div>
</template>

<script>
import API from "../../plugins/api";
export default {
  data() {
    return {
      api: new API("/api/transaction"),

      columns: {
        MerchantName: "长沙XX公司",
        ServiceProviderName: "湖南易捷云科技有限公司",
        BatchNo: "BN21060611403408",
        atime: "2021-06-06T11:40:34.49",
        TotalAmount: 0,

        // BusinesStatus: 0,
        BatchStatus: 0,

        //   BatchStatusName: "待复核",

        // invoiceAmount: 0,
        // RechargeAmount: 0,
        // Id: 896,
        // MID: 165,
        // AuditStatus: 0,
        // PayStatus: 0,
        // PayChannelId: 0,
        // MerchantCode: "YJS20210604001",
        // FilePath: "/upload/clientUp/f7179099-775c-4eee-99bb-f11adb9cd6d1.doc",
        // BatchOrderId: "XYHR2021060662740059404",
        // resJson: "",
        // ServiceProviderId: 7,
        // BatchSource: "WEB",
        // invoiceApplyDate: "0001-01-01T00:00:00",
        // TotalNum: 0,
        // Reasons: "",
        // CheckTime: "2021-06-06T11:40:34",
        // BatchStt: "",
        // BatchSttName: "",
        // repayAmount: "",
        // repayFee: "",
        // completeTime: "",
      },
      param: {
        SID: "",
        BeginDate: "",
        EndDate: "",
      },
    };
  },
  created() {
    // this.api.getList = "statements";
    console.log(this.api);
    this.api.getList = "BatchList";
  },
  methods: {
    onSearch(e) {
      this.$refs.table.getData(e);
    },
  },
};
</script>

<style></style>
